import 'package:get/get.dart';

import '../../bean/drama_info_result_data.dart';
import '../../net/api/drama_api.dart';

mixin BaseDramaController on GetxController {
  Rxn<DramaInfoData> dramaInfo = Rxn();

  /// 短剧详情
  Future onDramaInfo(int diId) async {
    final response = await DramaApi.instance.dramaInfo(diId);
    if (response.isSuccess) {
      dramaInfo.value = response.data?.info;
    }
  }
}
